package com.example.controller;

import com.example.domain.Result;

public class MyController {
    public Result success() {
        return new Result("请求成功", null, 200);
    }

    public Result success(Object data) {
        return new Result("请求成功", data, 200);
    }

    public Result error(String msg) {
        return new Result(msg, null, 500);
    }

}
